package com.mate.cloud.user.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cong zhi
 * @description
 * @email 448341911@qq.com
 * @date $ $
 * @version: v1.0
 */
@RestController
@RequestMapping("/degrade")
public class DegradeController {

    @GetMapping("/hello")
    public String hello() throws InterruptedException {
        Thread.sleep(500); // 响应时间一定会超过100ms
        return "Hello sentinel degrade";
    }
}
